/**
 * 
 */
package com.lanswon.qzsmk.vo;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author sun
 *
 */
public class MakeCardQueryResultVo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8153955555574279093L;
	
	/**
	 * 制卡任务编号
	 */
	private String cardTaskNo;;

	
	/**
	 * 申请批次号
	 */
	private String applyBatchNo;

	/**
	 * 申请网点
	 */
	private String applyNetDot;
	
	/**
	 * 卡产品
	 */
	private String cardPName;
	
	/**
	 * 数量
	 */
	private Integer number;
	
	/**
	 * 申请日期
	 */
	private Date applyDate;
	
	/**
	 * 工作单位
	 */
	private String corp;
	
	/**
	 * 备注（是否加急）
	 */
	private String desc;
	
	/**
	 * 合作商编号
	 */
	private String companyNo;
	
	
	/**
	 * 制卡任务名称
	 */
	private String taskName;
	
	/**
	 * 任务生成时间
	 */
	private Date tasksGeneTime;
	
	/**
	 * 卡的物理类型的 名称
	 */
	private String cardPhysicsTypeName;
	
	/**
	 * 卡的物理类型的 代码
	 */
	private String cardPhysicsTypeCode;
	
	/**
	 * 卡类型代码
	 */
	private String cardTypeCode;
	
	/**
	 * 卡类型代码
	 */
	private String cardTypeName;
	
	

	public String getCardTypeCode() {
		return cardTypeCode;
	}

	public void setCardTypeCode(String cardTypeCode) {
		this.cardTypeCode = cardTypeCode;
	}

	public String getCardTypeName() {
		return cardTypeName;
	}

	public void setCardTypeName(String cardTypeName) {
		this.cardTypeName = cardTypeName;
	}

	public String getCardPhysicsTypeCode() {
		return cardPhysicsTypeCode;
	}

	public void setCardPhysicsTypeCode(String cardPhysicsTypeCode) {
		this.cardPhysicsTypeCode = cardPhysicsTypeCode;
	}

	public String getCardPhysicsTypeName() {
		return cardPhysicsTypeName;
	}

	public void setCardPhysicsTypeName(String cardPhysicsTypeName) {
		this.cardPhysicsTypeName = cardPhysicsTypeName;
	}

	public Date getTasksGeneTime() {
		return tasksGeneTime;
	}

	public void setTasksGeneTime(Date tasksGeneTime) {
		this.tasksGeneTime = tasksGeneTime;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	

	public String getCompanyNo() {
		return companyNo;
	}

	public void setCompanyNo(String companyNo) {
		this.companyNo = companyNo;
	}

	public String getApplyNetDot() {
		return applyNetDot;
	}

	public void setApplyNetDot(String applyNetDot) {
		this.applyNetDot = applyNetDot;
	}

	public String getCardPName() {
		return cardPName;
	}

	public void setCardPName(String cardPName) {
		this.cardPName = cardPName;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public String getCorp() {
		return corp;
	}

	public void setCorp(String corp) {
		this.corp = corp;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	

	public String getApplyBatchNo() {
		return applyBatchNo;
	}

	public void setApplyBatchNo(String applyBatchNo) {
		this.applyBatchNo = applyBatchNo;
	}

	public String getCardTaskNo() {
		return cardTaskNo;
	}

	public void setCardTaskNo(String cardTaskNo) {
		this.cardTaskNo = cardTaskNo;
	}

	@Override
	public String toString() {
		return "MakeCardQueryResultVo [cardTaskNo="+cardTaskNo+",applyNetDot=" + applyNetDot
				+ ", cardPName=" + cardPName + ", number=" + number
				+ ", applyDate=" + applyDate + ", corp=" + corp + ", desc="
				+ desc +",companyNo="+companyNo+ "]";
	}
	/**
	 * 将获取的字符串数组放到对象的属性中
	 * @throws ParseException 
	 */
	public void setProperties(String[] ids) throws ParseException {
		
		 this. applyBatchNo=ids[0];
		 this. applyNetDot=ids[1];
		 this. cardPName=ids[2];
		 this. number=Integer.valueOf(ids[3]);
		 this. applyDate=new SimpleDateFormat("yyyy-MM-dd").parse(ids[4]);
		 this. corp=ids[5];
		 this. desc=ids[6];
		
	}
	/**
	 */
	public void setPropertiesByTasked(String[] ids) throws ParseException {
		
		 this. cardTaskNo=ids[0];
		 this. taskName=ids[1];
		 this.applyBatchNo=ids[1];
		 this. cardPName=ids[2];
		 this.cardPhysicsTypeName=ids[3];
		 this.cardPhysicsTypeCode=ids[4];
		 this. number=Integer.valueOf(ids[5]);
		 this. applyNetDot=ids[6];
		 this.corp=ids[7];
		 this. applyDate=new SimpleDateFormat("yyyy-MM-dd").parse(ids[8]);
		 this. desc=ids[9];
		
	}
	
	public void setPropertiesBySingleTasked(String[] ids) throws ParseException {
		
		 this. cardTaskNo=ids[0];
		 this. taskName=ids[1];
		 this. cardPName=ids[2];
		 this.cardPhysicsTypeName=ids[3];
		 this.cardPhysicsTypeCode=ids[4];
		 this. number=Integer.valueOf(ids[5]);
		 this.corp=ids[6];
		 this. applyDate=new SimpleDateFormat("yyyy-MM-dd").parse(ids[7]);
		 this. desc=ids[8];
		
	}
	
}
